package com.my.cd.facade;

/**
 * 家庭影院设备类：爆米花机
 */
public class Popcorn {

    private static Popcorn instance = null;

    private Popcorn() {
    }

    public static Popcorn getInstance() {
        if (instance == null) {
            instance = new Popcorn();
        }
        return instance;
    }

    public void on() {
        System.out.println("Popcorn on");
    }

    public void off() {
        System.out.println("Popcorn off");
    }

    public void pop() {
        System.out.println("Popcorn is popping");
    }

}
